Listing 5 shows the code for the list search.
清单5给出链表搜索代码。
As part of configuring the List, you must specify the field that will be used as the subject column to show the results of a List search.
作为配置List的一部分,必须指定用作主题列的字段来显示List搜索的结果。
When you select a List search result, it automatically opens the right Workplace application and goes to the item in the appropriate List.
选择List搜索结果时,会自动打开正确的Workplace应用程序并转至适当List中的项。
If it was an unordered list, we were basically stuck with linear search. Got to walk through the whole list to see if the thing is there.
如果是一个未排序的列表,基本上我们就只能使用线性搜索了,通过遍历整个列表来查看。
So when I do the analysis, I want to think about what am I doing here, am I capturing all the pieces of it? Here, the two variables that matter are what's the length of the list, and how many times I'm going to search it?
这里,要关注的,两个变量是列表,的长度以及我要搜索的次数,这种情况下,这个算法赢了?
OK? So the example I'm going to do, I'm going to search a sorted list.
来搜索目标元素,好,翻到课堂材料的第二页。
应用推荐